package com.ouc.eddyAlgorithm.mapper;


import com.ouc.eddyAlgorithm.domain.VgEddy;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
//对应 vg_a4b3 数据表
public interface Vga4b3Mapper {

  /**
   * 查询总记录数
   *
   * @return
   */
  int getTotalNum();

  List<VgEddy> findAll();

  List<VgEddy> findByDateAndLevel(String date, Integer level);

  List<VgEddy> findByDateAndLevelRange(Integer startLevel, Integer endLevel, String startDate, String endDate);

  List<VgEddy> findByEddyIdAndDateAndLevel(Integer eddyId, String date, Integer level);

  int insert(VgEddy vgEddy);


}
